﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;
using System.Threading.Tasks;

namespace Paging
{
    public interface ISqlFilter<TEntity> where TEntity : class
    {
        string BuildSqlByModel(string assign = "");

        Task<PaginatedItemsViewModel<TEntity>> PagingFilterAsync(SqlConnection connection, string sql, string[] orderByFields, Dictionary<string, string[]> assignFields = null);
    }
}
